<template>
  <ElSelect :="$attrs">
    <ElOption v-for="item in props.options" :key="item.value" :="item" />
  </ElSelect>
</template>

<script setup lang="ts">
import { ElSelect, ElOption } from 'element-plus'
interface Option {
  value: string | number | boolean;
  label: string | number;
  disabled?: boolean
}
interface Props {
  options: Array<Option>
}
const props = withDefaults(defineProps<Props>(), {
  options: () => []
})
</script>
